package com.jh.user.repository;

import com.jh.user.pojo.UserBankNo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface UserBankNoRepository extends JpaRepository<UserBankNo,String>,JpaSpecificationExecutor<UserBankNo>{

	@Query("select bank from  UserBankNo bank where bank.bankName like %:bankLocation%")
	UserBankNo findBankNoByBankLocation(@Param("bankLocation") String bankLocation);
}
